//鄂托克前旗线上http://110.18.61.100 //本地线上http://139.9.231.9
const PubSetting = {
  //发布版
  Authority: 'http://139.9.241.190:1712',
  HttpApiAddress: 'http://139.9.241.190:1712',
  LocalhostApiAddress: 'http://139.9.241.190:1712',
  SelfHost: 'http://139.9.231.9',
  wsAddress:'ws://139.9.241.190:1715/websocket/BI', //ws://139.9.241.190:1715/websocket/BI
  entrance:'https://iqq.etkqq.gov.cn/farm-base',
  Ports: {
    management: ':10003',
    analysis:'10007',
    forecast:'10004',
    dataBase:'10011'
  },
  TokenTimeout: 30,
  HttpApiTimeout: 30000 //接口请求超期时间
}

const DevSetting = {
  //开发版
  Authority: 'http://139.9.241.190:1712',
  HttpApiAddress: 'http://139.9.241.190:1712',
  LocalhostApiAddress: 'http://139.9.241.190:1712',
  SelfHost: 'http://localhost',
  wsAddress:'ws://139.9.241.190:1715/websocket/BI',
  entrance:'https://iqq.etkqq.gov.cn/farm-base',
  Ports: {
    management: ':10003',
    analysis:'10007',
    forecast:'10004',
    dataBase:'10011'
  },
  //Token过期时间
  TokenTimeout: 30,
  HttpApiTimeout: 30000 //接口请求超期时间
}

const Setting = process.env.NODE_ENV == 'development' ? DevSetting : PubSetting

export default Setting
